#ifndef FILED_H
#define FILED_H

#define FILED_VERSION 2
#define PUSH 0
#define PULL 1

struct flags {
	int debug;
	uint64_t start, end;
	int check;
};

struct target {
	char *ip;
	int port;
};

uint64_t getflen(const char *file);
int push(const char *dest, struct target **targets, int targetct, struct flags *flg);
int pull(const char *dest, const char *ip, int port, struct flags *flg);
int fill2size(const char *file, uint64_t size);

#endif
